package com.skyz.wrap.utils;

import android.content.Context;

import com.lzj.pass.dialog.PayPassDialog;
import com.lzj.pass.dialog.PayPassView;

public class MKKeyboard {
    private MKKeyboard(){
    }
    private static MKKeyboard instance = new MKKeyboard();

    public static MKKeyboard getInstance(){
        return  instance;
    }

    public void show(Context context){
        final PayPassDialog dialog=new PayPassDialog(context);
        dialog.getPayViewPass()
                .setRandomNumber(true)
                .setPayClickListener(new PayPassView.OnPayClickListener() {
                    @Override
                    public void onPassFinish(String passContent) {
                        //6位输入完成回调
                    }
                    @Override
                    public void onPayClose() {
                        dialog.dismiss();
                        //关闭弹框
                    }
                    @Override
                    public void onPayForget() {
                        dialog.dismiss();
                        //点击忘记密码回调
                    }
                });
    }


}
